package com.pretty.test.controller.pets.blog.wrapper;

import com.pretty.test.controller.pets.blog.vo.BlogPageVO;
import com.pretty.test.entity.PetsBlog;
import com.pretty.test.utils.otherutils.BeanUtil;
import com.pretty.test.utils.wrapper.BaseEntityWrapper;

import java.util.Objects;

public class BlogPageWrapper extends BaseEntityWrapper<PetsBlog, BlogPageVO> {

    public static BlogPageWrapper build(){
        return new BlogPageWrapper();
    }

    @Override
    public BlogPageVO entityVO(PetsBlog entity) {
        BlogPageVO vo = Objects.requireNonNull(BeanUtil.copy(entity, BlogPageVO.class));
        return vo;
    }
}
